package com.hrsoft.modules.bid.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.hrsoft.common.utils.PageUtils;
import com.hrsoft.common.utils.Query;

import com.hrsoft.modules.bid.dao.InvoiceDao;
import com.hrsoft.modules.bid.entity.InvoiceEntity;
import com.hrsoft.modules.bid.service.InvoiceService;


@Service("invoiceService")
public class InvoiceServiceImpl extends ServiceImpl<InvoiceDao, InvoiceEntity> implements InvoiceService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<InvoiceEntity> page = this.page(
                new Query<InvoiceEntity>().getPage(params),
                new QueryWrapper<InvoiceEntity>()
        );

        return new PageUtils(page);
    }

}